import Login from '../page/login'
import Article from '../page/article'
import Demo from '../page/demo'

// 路由系统
import { createBrowserRouter } from 'react-router-dom'

// 创建路由实例
const router = createBrowserRouter([
    {
        path: '/',
        element: <Demo></Demo>
    },
    {
        path: '/login',
        element: <Login></Login>
    },
    {
        path: '/article',
        element: <Article></Article>
    }
])

export default router;